package com.captjack.netty.httpserver.constant;

import com.alibaba.fastjson.JSONObject;
import com.captjack.netty.httpserver.entity.CommonResult;

import java.net.HttpURLConnection;

/**
 * @author admin
 */
public final class NettyServerHandlerConstant {

    /**
     * 统一返回异常json
     */
    public static final String COMMON_EXCEPTION_RETURN_CONTENT = JSONObject.toJSONString(CommonResult.builder().code(HttpURLConnection.HTTP_INTERNAL_ERROR).msg("system error!").build());

    private NettyServerHandlerConstant() {

    }

}
